package com.gy.edu.mine;

import android.view.View;
import android.widget.ListView;

import com.gy.edu.R;
import com.gy.edu.base.BaseActivity;
import com.gy.edu.mine.adapter.MyCommentAdapter;

/**
 * 作者：gy on 16/12/22
 * 说明：我的评论
 */
public class MyCommentActivity extends BaseActivity {

    private ListView listView;
    private View footerView,footerLine;
    private MyCommentAdapter commentAdapter;

    @Override
    protected void initView() {
        setContentViewRes(R.layout.my_comment);
        setTitleMsg("我的评论");
        listView = findView(R.id.my_comment_list);
        footerView = View.inflate(this,R.layout.home_footer,null);
        footerLine = footerView.findViewById(R.id.footer_line);
        footerLine.setVisibility(View.GONE);
    }

    @Override
    protected void initData() {
        commentAdapter = new MyCommentAdapter(this);
    }

    @Override
    protected void fillData() {
        super.fillData();
        listView.addFooterView(footerView);
        listView.setAdapter(commentAdapter);
    }
}
